package com.hotec.PROJECT_NAME.modules.sys.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import com.hotec.PROJECT_NAME.component.basic.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.Size;


/**
 *
 *
 * @author llb
 */
@Data
@Table(name = "sys_attachment")
@Accessors(chain = true)
public class SysAttachment extends BaseEntity{

    /**
     * 附件地址
     */
    @Size(max=1000)
    @Column(name = "attachment")
    private String attachment;

    /**
     * 业务id
     */
    @Size(max=255)
    @Column(name = "business_id")
    private String businessId;

    @Size(max=255)
    @Column(name = "info_id")
    private String infoId;

    /**
     * 下载次数
     */
    @Column(name = "download_nums")
    private Long downloadNums;

    /**
     * 文件大小
     */
    @Column(name = "filesize")
    private Long filesize;

    /**
     * 后缀
     */
    @Size(max=255)
    @Column(name = "suffix")
    private String suffix;

    /**
     * 系统名称
     */
    @Size(max=1000)
    @Column(name = "newname")
    private String newname;

    /**
     * 原始名称
     */
    @Size(max=1000)
    @Column(name = "oldname")
    private String oldname;

    /**
     * business_id中的对应字段名称
     */
    @Size(max=255)
    @Column(name = "biz_field_name")
    private String bizFieldName;

    /**
     * 预览次数
     */
    @Column(name = "view_nums")
    private Long viewNums;

    /**
     * 描述
     */
    @Size(max=255)
    @Column(name = "description")
    private String description;

    /**
     * 文件格式
     */
    @Size(max=255)
    @Column(name = "file_type")
    private String fileType;

    /**
     * 格式
     */
    @Size(max=500)
    @Column(name = "remark")
    private String remark;

    @Column(name = "version")
    private Integer version;

    @Size(max=500)
    @Column(name = "store_path")
    private String storePath;

}

